import {createStore} from "vuex";

const store  = createStore({
    state () {
      return {
        dialogTableVisible:false,//弹窗是否显示
        alertListIsShow:false,
        standIsShow:false,
        specialIsShow:false,
        meteringIsShow:false,
        patrolIsShow:false,
        maintainIsShow:false,
        repairsIsShow:false,
        upkeepIsShow:false,
      }
    },
    mutations: {
      setDialogTableStatus (state,status) {
        state.dialogTableVisible = status
      },
      setSpecialStatus (state,status) {
        state.specialIsShow = status
      },
      setStandStatus (state,status) {
        state.standIsShow = status
      },
      setMeteringStatus (state,status) {
        state.meteringIsShow = status
      },
      setPatrolStatus (state,status) {
        state.patrolIsShow = status
      },
      setMaintainStatus (state,status) {
        state.maintainIsShow = status
      },
      setRepairsStatus (state,status) {
        state.repairsIsShow = status
      },
      setUpkeepStatus (state,status) {
        state.upkeepIsShow = status
      }
    }
  })


  export { store };